/*
1142014 - Henesys Donor Medal - (no description)
1142015 - Ellinia Donor Medal - (no description)
1142016 - Perion Donor Medal - (no description)
1142017 - Kerning City Donor Medal - (no description)
1142018 - Sleepywood Donor Medal - (no description)
1142019 - The Nautilus Donor Medal - (no description)
1142020 - El Nath Donor Medal - (no description)
1142021 - Aquarium Donor Medal - (no description)
1142022 - Ludibrium Donor Medal - (no description)
1142023 - Omega Sector Donor Medal - (no description)
1142024 - Korean Folk Town Donor Medal - (no description)
1142025 - Leafre Donor Medal - (no description)
1142026 - Mu Lung Donor Medal - (no description)
1142027 - Herb Town Donor Medal - (no description)
1142028 - Ariant Donor Medal - (no description)
1142029 - Magatia Donor Medal - (no description)
1142030 - Lith Harbor Donor Medal - (no description)
1142031 - Orbis Donor Medal - (no description)
*/
//Donate 15 mil...?
//unsure - DFatal

void npc(Player @player, NPC @npc) {
	int state = npc.getState();
	int map = player.getMap().getID();
	int price = 15000000;
	if(map == 100000200){ // Henesys
		if(state == 0){
				npc.addText("Do you want to donate #b"+ price +" #kmeso?\r\nYou will get a Henesys Donor Medal #i1142014# in return of your kind donation.");
				npc.sendYesNo();
			}
		if(state == 1){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= price){	
				player.giveMesos(-price);
				player.giveItem(1142014, 1);
				npc.end();
			} 
			else{
				npc.addText("Sorry but you dont have enough of mesos!");
            npc.sendOK();
			npc.end();
			}
			} else{
				npc.addText("Suit yourself, come back anytime!");
				npc.sendNext();
				npc.end();
			}
		}
	}
	if(map == 101000000){ // Ellinia
		if(state == 0){
				npc.addText("Do you want to donate #b"+ price +" #kmeso?\r\nYou will get a Ellinia Donor Medal  #i1142015# in return of your kind donation.");
				npc.sendYesNo();
			}
		if(state == 1){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= price){	
				player.giveMesos(-price);
				player.giveItem(1142015, 1);
				npc.end();
			} 
			else{
				npc.addText("Sorry but you dont have enough of mesos!");
            npc.sendOK();
			npc.end();
			}
			} else{
				npc.addText("Suit yourself, come back anytime!");
				npc.sendNext();
				npc.end();
			}
		}
	}
	if(map == 102000000){ // Perion
		if(state == 0){
				npc.addText("Do you want to donate #b"+ price +" #kmeso?\r\nYou will get a Perion Donor Medal  #i1142016# in return of your kind donation.");
				npc.sendYesNo();
			}
		if(state == 1){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= price){	
				player.giveMesos(-price);
				player.giveItem(1142016, 1);
				npc.end();
			} 
			else{
				npc.addText("Sorry but you dont have enough of mesos!");
            npc.sendOK();
			npc.end();
			}
			} else{
				npc.addText("Suit yourself, come back anytime!");
				npc.sendNext();
				npc.end();
			}
		}
	}
	if(map == 103000000){ // Kerning City
		if(state == 0){
				npc.addText("Do you want to donate #b"+ price +" #kmeso?\r\nYou will get a Kerning City Donor Medal #i1142017# in return of your kind donation.");
				npc.sendYesNo();
			}
		if(state == 1){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= price){	
				player.giveMesos(-price);
				player.giveItem(1142017, 1);
				npc.end();
			} 
			else{
				npc.addText("Sorry but you dont have enough of mesos!");
            npc.sendOK();
			npc.end();
			}
			} else{
				npc.addText("Suit yourself, come back anytime!");
				npc.sendNext();
				npc.end();
			}
		}
	}
	if(map == 105040300){ // Sleepywood
		if(state == 0){
				npc.addText("Do you want to donate #b"+ price +" #kmeso?\r\nYou will get a Sleepywood Donor Medal #i1142018# in return of your kind donation.");
				npc.sendYesNo();
			}
		if(state == 1){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= price){	
				player.giveMesos(-price);
				player.giveItem(1142018, 1);
				npc.end();
			} 
			else{
				npc.addText("Sorry but you dont have enough of mesos!");
            npc.sendOK();
			npc.end();
			}
			} else{
				npc.addText("Suit yourself, come back anytime!");
				npc.sendNext();
				npc.end();
			}
		}
	}
	if(map == 120000000){ // Nautilus
		if(state == 0){
				npc.addText("Do you want to donate #b"+ price +" #kmeso?\r\nYou will get a Nautilus Donor Medal #i1142019# in return of your kind donation.");
				npc.sendYesNo();
			}
		if(state == 1){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= price){	
				player.giveMesos(-price);
				player.giveItem(1142019, 1);
				npc.end();
			} 
			else{
				npc.addText("Sorry but you dont have enough of mesos!");
            npc.sendOK();
			npc.end();
			}
			} else{
				npc.addText("Suit yourself, come back anytime!");
				npc.sendNext();
				npc.end();
			}
		}
	}
	if(map == 211000000){ // El Nath
		if(state == 0){
				npc.addText("Do you want to donate #b"+ price +" #kmeso?\r\nYou will get a El Nath Donor Medal #i1142020# in return of your kind donation.");
				npc.sendYesNo();
			}
		if(state == 1){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= price){	
				player.giveMesos(-price);
				player.giveItem(1142020, 1);
				npc.end();
			} 
			else{
				npc.addText("Sorry but you dont have enough of mesos!");
            npc.sendOK();
			npc.end();
			}
			} else{
				npc.addText("Suit yourself, come back anytime!");
				npc.sendNext();
				npc.end();
			}
		}
	}
	if(map == 230000000){ // Aquarium
		if(state == 0){
				npc.addText("Do you want to donate #b"+ price +" #kmeso?\r\nYou will get a Aquarium Donor Medal #i1142021# in return of your kind donation.");
				npc.sendYesNo();
			}
		if(state == 1){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= price){	
				player.giveMesos(-price);
				player.giveItem(1142021, 1);
				npc.end();
			} 
			else{
				npc.addText("Sorry but you dont have enough of mesos!");
            npc.sendOK();
			npc.end();
			}
			} else{
				npc.addText("Suit yourself, come back anytime!");
				npc.sendNext();
				npc.end();
			}
		}
	}
	if(map == 220000000){ // Ludibrium
		if(state == 0){
				npc.addText("Do you want to donate #b"+ price +" #kmeso?\r\nYou will get a Ludibrium Donor Medal #i1142022# in return of your kind donation.");
				npc.sendYesNo();
			}
		if(state == 1){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= price){	
				player.giveMesos(-price);
				player.giveItem(1142022, 1);
				npc.end();
			} 
			else{
				npc.addText("Sorry but you dont have enough of mesos!");
            npc.sendOK();
			npc.end();
			}
			} else{
				npc.addText("Suit yourself, come back anytime!");
				npc.sendNext();
				npc.end();
			}
		}
	}
	if(map == 221000000){ // Omega
		if(state == 0){
				npc.addText("Do you want to donate #b"+ price +" #kmeso?\r\nYou will get a Omega Sector Donor Medal #i1142023# in return of your kind donation.");
				npc.sendYesNo();
			}
		if(state == 1){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= price){	
				player.giveMesos(-price);
				player.giveItem(1142023, 1);
				npc.end();
			} 
			else{
				npc.addText("Sorry but you dont have enough of mesos!");
            npc.sendOK();
			npc.end();
			}
			} else{
				npc.addText("Suit yourself, come back anytime!");
				npc.sendNext();
				npc.end();
			}
		}
	}
	if(map == 222000000){ // Korean
		if(state == 0){
				npc.addText("Do you want to donate #b"+ price +" #kmeso?\r\nYou will get a Korean Folk Town Donor Medal #i1142024# in return of your kind donation.");
				npc.sendYesNo();
			}
		if(state == 1){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= price){	
				player.giveMesos(-price);
				player.giveItem(1142024, 1);
				npc.end();
			} 
			else{
				npc.addText("Sorry but you dont have enough of mesos!");
            npc.sendOK();
			npc.end();
			}
			} else{
				npc.addText("Suit yourself, come back anytime!");
				npc.sendNext();
				npc.end();
			}
		}
	}
	if(map == 240000000){ // Leafre
		if(state == 0){
				npc.addText("Do you want to donate #b"+ price +" #kmeso?\r\nYou will get a Leafre Donor Medal #i1142025# in return of your kind donation.");
				npc.sendYesNo();
			}
		if(state == 1){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= price){	
				player.giveMesos(-price);
				player.giveItem(1142025, 1);
				npc.end();
			} 
			else{
				npc.addText("Sorry but you dont have enough of mesos!");
            npc.sendOK();
			npc.end();
			}
			} else{
				npc.addText("Suit yourself, come back anytime!");
				npc.sendNext();
				npc.end();
			}
		}
	}
	if(map == 250000000){ // Mu Lung
		if(state == 0){
				npc.addText("Do you want to donate #b"+ price +" #kmeso?\r\nYou will get a Mu Lung Donor Medal #i1142026# in return of your kind donation.");
				npc.sendYesNo();
			}
		if(state == 1){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= price){	
				player.giveMesos(-price);
				player.giveItem(1142026, 1);
				npc.end();
			} 
			else{
				npc.addText("Sorry but you dont have enough of mesos!");
            npc.sendOK();
			npc.end();
			}
			} else{
				npc.addText("Suit yourself, come back anytime!");
				npc.sendNext();
				npc.end();
			}
		}
	}
	if(map == 251000000){ // Herb Town
		if(state == 0){
				npc.addText("Do you want to donate #b"+ price +" #kmeso?\r\nYou will get a Herb Town Donor Medal #i1142027# in return of your kind donation.");
				npc.sendYesNo();
			}
		if(state == 1){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= price){	
				player.giveMesos(-price);
				player.giveItem(1142027, 1);
				npc.end();
			} 
			else{
				npc.addText("Sorry but you dont have enough of mesos!");
            npc.sendOK();
			npc.end();
			}
			} else{
				npc.addText("Suit yourself, come back anytime!");
				npc.sendNext();
				npc.end();
			}
		}
	}
	if(map == 260000000){ // Ariant
		if(state == 0){
				npc.addText("Do you want to donate #b"+ price +" #kmeso?\r\nYou will get a Ariant Donor Medal #i1142028# in return of your kind donation.");
				npc.sendYesNo();
			}
		if(state == 1){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= price){	
				player.giveMesos(-price);
				player.giveItem(1142028, 1);
				npc.end();
			} 
			else{
				npc.addText("Sorry but you dont have enough of mesos!");
            npc.sendOK();
			npc.end();
			}
			} else{
				npc.addText("Suit yourself, come back anytime!");
				npc.sendNext();
				npc.end();
			}
		}
	}
	if(map == 261000000){ // Magatia
		if(state == 0){
				npc.addText("Do you want to donate #b"+ price +" #kmeso?\r\nYou will get a Magatia Donor Medal #i1142029# in return of your kind donation.");
				npc.sendYesNo();
			}
		if(state == 1){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= price){	
				player.giveMesos(-price);
				player.giveItem(1142029, 1);
				npc.end();
			} 
			else{
				npc.addText("Sorry but you dont have enough of mesos!");
            npc.sendOK();
			npc.end();
			}
			} else{
				npc.addText("Suit yourself, come back anytime!");
				npc.sendNext();
				npc.end();
			}
		}
	}
	if(map == 104000000){ // Lith
		if(state == 0){
				npc.addText("Do you want to donate #b"+ price +" #kmeso?\r\nYou will get a Lith Harbor Donor Medal #i1142030# in return of your kind donation.");
				npc.sendYesNo();
			}
		if(state == 1){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= price){	
				player.giveMesos(-price);
				player.giveItem(1142030, 1);
				npc.end();
			} 
			else{
				npc.addText("Sorry but you dont have enough of mesos!");
            npc.sendOK();
			npc.end();
			}
			} else{
				npc.addText("Suit yourself, come back anytime!");
				npc.sendNext();
				npc.end();
			}
		}
	}
	if(map == 200000000){ // Orbis
		if(state == 0){
				npc.addText("Do you want to donate #b"+ price +" #kmeso?\r\nYou will get a Orbis Donor Medal #i1142031# in return of your kind donation.");
				npc.sendYesNo();
			}
		if(state == 1){
		if(npc.getSelected() == YES){
			if(player.getMesos() >= price){	
				player.giveMesos(-price);
				player.giveItem(1142031, 1);
				npc.end();
			} 
			else{
				npc.addText("Sorry but you dont have enough of mesos!");
            npc.sendOK();
			npc.end();
			}
			} else{
				npc.addText("Suit yourself, come back anytime!");
				npc.sendNext();
				npc.end();
			}
		}
	}
}